package com.cn.ryc.mapper;

import com.cn.ryc.model.DetectionRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface DetectionRecordMapper {

    @Insert("INSERT INTO detection_records (video_url, detection_time, class, confidence, x, y, width, height) " +
            "VALUES (#{videoUrl}, #{detectionTime}, #{detectionClass}, #{confidence}, #{x}, #{y}, #{width}, #{height})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    void insertDetectionRecord(DetectionRecord detectionRecord);
} 